﻿using Chaunce.FrameWork.NetCore.Helpers;
using System;
using System.Collections.Generic;
using System.Text;

namespace Chaunce.Api.Commone.Const
{
    /// <summary>
    /// 系统常量值
    /// 为了使系统配置在Const类和配置文件中切换灵活，故配置文件的参数在此处统一读取后再进行操作
    /// </summary>
    public class SysConfigConst
    {
        /// <summary>
        /// //Token颁发机构   
        /// </summary>
        public readonly static string validIssuer = ConfigHelper.GetSection("AppSettings").GetSection("JwtBearer")["ValidIssuer"];

        /// <summary>
        /// //颁发给谁
        /// </summary>
        public readonly static string validAudience = ConfigHelper.GetSection("AppSettings").GetSection("JwtBearer")["ValidAudience"];

        /// <summary>
        /// //密钥
        /// </summary>
        public readonly static string key = ConfigHelper.GetSection("AppSettings").GetSection("JwtBearer")["Key"];
    }
}
